<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Vote
 * @copyright  Copyright 2011 KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 * @version    $Id: raters-fluent-list.tpl 2011-03-09 01:11:30 idris $
 * @author     Idris
 */
?>
  
<?php $nodeId = rand(0, 1000) . 'fluentList-' . $this->object->getGuid(); ?>

<script type="text/javascript">
en4.core.runonce.add(function() {
  var options = {
    guid: '<?php echo $this->object->getGuid(); ?>',
    nodeId: '<?php echo $nodeId; ?>'
  }
  if (!en4.kowcore.fluentLists) {
    en4.kowcore.fluentLists = [];
  }
  en4.kowcore.fluentLists.push(new en4.kowcore.fluentList(options));
});
</script>

<span id="<?php echo $nodeId; ?>">
  <a href="javascript:void(0)">
    <?php echo $this->translate(array('%s vote', '%s votes', $this->count), $this->count); ?>
  </a>
</span>